using System;
using System.Collections.Generic;
using System.Text;

namespace VisualizationPackage
{
    public class GlobalVariables
    {
        private static Dictionary<int, string> _data = new Dictionary<int, string>();

        public static Dictionary<int, string> Data
        {
	        get { return _data;}
	        set { _data = value;}
        }

        public static int Get(string p)
        {
            if (_data.ContainsValue(p))
                for (int i = 0; i < _data.Keys.Count; i++)
                {
                    if (_data[i] == p)
                        return i;
                }
            return 0;
        }
    }
}
